﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using ZstdNet;

namespace Fortunate.Application
{
    public class Helper
    {
        public static string GetPath()
        {
            var executablePath0 = AppDomain.CurrentDomain.BaseDirectory;
            var executablePath1 = Assembly.GetEntryAssembly().Location;
            var executablePath2 = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            var executablePath3 = Process.GetCurrentProcess().MainModule.FileName;
            var executablePath4 = Environment.GetCommandLineArgs()[0];
            return Directory.GetCurrentDirectory();
        }
        /// <summary>
        /// 获取命名空间
        /// </summary>
        public static string GetnameSpace
        {
            get
            {
                return string.Concat(Assembly.GetExecutingAssembly().GetName().Name, ".Entities");
            }
        }
    }
}
